'''
for 循环嵌套
[表达式 for i in list1 for j in list2]
'''
list_value  = []
for i in '高富帅':
    for j in '白富美':
        list_value.append(i+j)
print(list_value)   # ['高白', '高富', '高美', '富白', '富富', '富美', '帅白', '帅富', '帅美']


list_value1 = [ i+j for i in '高富帅' for j in '白富美' ]
print(list_value1)  # ['高白', '高富', '高美', '富白', '富富', '富美', '帅白', '帅富', '帅美']
